package com.zitangkou.user.enums.user;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.Accessors;

/**
 * 用户性别
 *
 * @author Deng Ningning
 * @version 1.0
 * @date 2020/8/14 17:32
 */
@Getter
@Accessors(chain = true)
@AllArgsConstructor
public enum GenderEnum {
    /*
     * 未知
     */
    UNKNOWN(0, "未知"),
    /*
     * 男
     */
    MAN(1, "男"),
    /*
     * 女
     */
    WOMAN(2, "女"),
    ;
    /**
     * 值
     */
    @EnumValue
    private final Integer value;
    /**
     * 备注
     */
    @JsonValue
    private final String remark;
}
